//package com.naiterui.ehp.bs.recommend.dao.impl;
//
//import java.util.List;
//
//import org.springframework.stereotype.Repository;
//
//import com.naiterui.common.repository.hibernate.DefaultBaseDaoImpl;
//import com.naiterui.ehp.bs.recommend.bean.RecomEsignDoctor;
//import com.naiterui.ehp.bs.recommend.dao.IRecomEsignDoctorDao;
//
///**
// * @author guoyongxiang
// * @date 2019-07-31 13:19
// * @since 1.0.0
// */
//@Repository
//public class RecomEsignDoctorDaoImpl extends DefaultBaseDaoImpl<RecomEsignDoctor, Long> implements IRecomEsignDoctorDao {
//
//
//    @Override
//    public RecomEsignDoctor findByDoctorId(Long doctorId) {
//
//        List<RecomEsignDoctor> recomEsignDoctors = super.find("from RecomEsignDoctor where doctorId=?", doctorId);
//        if (!recomEsignDoctors.isEmpty()) {
//            return recomEsignDoctors.get(0);
//        }
//        return null;
//    }
//
//    @Override
//    public RecomEsignDoctor findByOpenId(String openId) {
//        List<RecomEsignDoctor> recomEsignDoctors = super.find("from RecomEsignDoctor where openId=?", openId);
//        if (!recomEsignDoctors.isEmpty()) {
//            return recomEsignDoctors.get(0);
//        }
//        return null;
//    }
//}
